Skip to content

Conversation

KevyVo
Copy link
Contributor

@KevyVo KevyVo commented Sep 20, 2025

Description

Currently, when we run defang mcp setup, the command attempts to write the config. One edge case I didn’t account for is when an mcp.json file already exists but is empty or just has a bunch of white spaces. Right now, we don’t overwrite it (though we should, since it’s empty). If the file exists and contains invalid JSON, we just return an error.

I also updated the messaging to tell user to update their IDE to the new version for the best experenice.

This PR will fix the mention edge case.
Screenshot 2025-09-19 at 5 19 06 PM

Linked Issues

Checklist

  • I have performed a self-review of my code
  • I have added appropriate tests
  • I have updated the Defang CLI docs and/or README to reflect my changes, if necessary

@KevyVo KevyVo self-assigned this Sep 20, 2025
@KevyVo KevyVo requested a review from lionello as a code owner September 20, 2025 00:19
@KevyVo KevyVo added the mcp MCP for IDE label Sep 20, 2025
@KevyVo KevyVo requested a review from nullfunc as a code owner September 20, 2025 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mcp MCP for IDE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant